home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / prog_bas / easynet.zip / DEMO.ZIP / MDI.FRM < prev    next >
Text File  |  1995-12-26  |  11KB  |  385 lines

  1. VERSION 4.00
  2. Begin VB.MDIForm MDI1 
  3.    Appearance      =   0  'Flat
  4.    BackColor       =   &H8000000C&
  5.    Caption         =   "Wellcome to EasyNet!!"
  6.    ClientHeight    =   5040
  7.    ClientLeft      =   1170
  8.    ClientTop       =   1725
  9.    ClientWidth     =   7965
  10.    Height          =   5730
  11.    Left            =   1110
  12.    LinkTopic       =   "MDI1"
  13.    Top             =   1095
  14.    Width           =   8085
  15.    Begin VB.PictureBox Picture1 
  16.       Align           =   1  'Align Top
  17.       Appearance      =   0  'Flat
  18.       BackColor       =   &H00E0E0E0&
  19.       BorderStyle     =   0  'None
  20.       FillColor       =   &H00C0C0C0&
  21.       BeginProperty Font 
  22.          name            =   "MS Sans Serif"
  23.          charset         =   1
  24.          weight          =   700
  25.          size            =   8.25
  26.          underline       =   0   'False
  27.          italic          =   0   'False
  28.          strikethrough   =   0   'False
  29.       EndProperty
  30.       ForeColor       =   &H80000008&
  31.       Height          =   615
  32.       Left            =   0
  33.       ScaleHeight     =   615
  34.       ScaleWidth      =   7965
  35.       TabIndex        =   0
  36.       Top             =   0
  37.       Width           =   7965
  38.       Begin VB.CommandButton Command1 
  39.          Appearance      =   0  'Flat
  40.          BackColor       =   &H80000005&
  41.          Caption         =   "EasyNet help"
  42.          BeginProperty Font 
  43.             name            =   "MS Sans Serif"
  44.             charset         =   1
  45.             weight          =   400
  46.             size            =   9.75
  47.             underline       =   0   'False
  48.             italic          =   0   'False
  49.             strikethrough   =   0   'False
  50.          EndProperty
  51.          Height          =   435
  52.          Left            =   3810
  53.          TabIndex        =   2
  54.          Top             =   90
  55.          Width           =   1665
  56.       End
  57.       Begin VB.CommandButton Command5 
  58.          Appearance      =   0  'Flat
  59.          BackColor       =   &H80000005&
  60.          Caption         =   "Comments..."
  61.          BeginProperty Font 
  62.             name            =   "MS Sans Serif"
  63.             charset         =   1
  64.             weight          =   400
  65.             size            =   9.75
  66.             underline       =   0   'False
  67.             italic          =   0   'False
  68.             strikethrough   =   0   'False
  69.          EndProperty
  70.          Height          =   435
  71.          Left            =   120
  72.          TabIndex        =   1
  73.          Top             =   90
  74.          Width           =   3525
  75.       End
  76.       Begin VB.Line Line1 
  77.          X1              =   0
  78.          X2              =   8700
  79.          Y1              =   600
  80.          Y2              =   600
  81.       End
  82.    End
  83.    Begin VB.Menu FileMenu 
  84.       Caption         =   "&File"
  85.       Begin VB.Menu Exitmenu 
  86.          Caption         =   "&Exit"
  87.       End
  88.    End
  89.    Begin VB.Menu EditMenu 
  90.       Caption         =   "&Edit"
  91.       Begin VB.Menu CopyMenu 
  92.          Caption         =   "&Copy to clipboard"
  93.       End
  94.       Begin VB.Menu DeleteMenu 
  95.          Caption         =   "&Delete selected items"
  96.       End
  97.       Begin VB.Menu SEPARATOR1 
  98.          Caption         =   "-"
  99.       End
  100.       Begin VB.Menu SelectAllMenu 
  101.          Caption         =   "Select &all"
  102.       End
  103.       Begin VB.Menu SEPARATOR3 
  104.          Caption         =   "-"
  105.       End
  106.       Begin VB.Menu SelectModeMenu 
  107.          Caption         =   "Select &Mode"
  108.       End
  109.    End
  110.    Begin VB.Menu ShowMenu 
  111.       Caption         =   "&Show"
  112.       Begin VB.Menu ShowExample 
  113.          Caption         =   "&WorkFlow"
  114.          Index           =   0
  115.       End
  116.       Begin VB.Menu ShowExample 
  117.          Caption         =   "&NetWork"
  118.          Index           =   1
  119.       End
  120.       Begin VB.Menu ShowExample 
  121.          Caption         =   "&Diagram"
  122.          Index           =   2
  123.       End
  124.       Begin VB.Menu ShowExample 
  125.          Caption         =   "&FlowChart"
  126.          Index           =   3
  127.       End
  128.    End
  129.    Begin VB.Menu ZoomMenu 
  130.       Caption         =   "&Zoom"
  131.       Begin VB.Menu ZoomValueMenu 
  132.          Caption         =   "&100% (Normal)"
  133.          Index           =   0
  134.       End
  135.       Begin VB.Menu ZoomValueMenu 
  136.          Caption         =   "&200%"
  137.          Index           =   1
  138.       End
  139.       Begin VB.Menu ZoomValueMenu 
  140.          Caption         =   "&50%"
  141.          Index           =   2
  142.       End
  143.       Begin VB.Menu ZoomValueMenu 
  144.          Caption         =   "0% (Fit in Window)"
  145.          Index           =   3
  146.       End
  147.    End
  148.    Begin VB.Menu CapabilitiesMenu 
  149.       Caption         =   "&Capabilities"
  150.       Begin VB.Menu MultiSelectionMenu 
  151.          Caption         =   "Multi &Selection"
  152.       End
  153.       Begin VB.Menu ReadOnlyMenu 
  154.          Caption         =   "&Read Only"
  155.       End
  156.       Begin VB.Menu CanSizeNodeMenu 
  157.          Caption         =   "Can Si&ze node"
  158.       End
  159.       Begin VB.Menu CanMoveNodemenu 
  160.          Caption         =   "Can &Move node"
  161.       End
  162.       Begin VB.Menu CanStretchLinkMenu 
  163.          Caption         =   "Can S&tretch link"
  164.       End
  165.       Begin VB.Menu CanMultiLinkMenu 
  166.          Caption         =   "Can M&ulti link"
  167.       End
  168.       Begin VB.Menu CanDrawNodeMenu 
  169.          Caption         =   "Can Draw &Node"
  170.       End
  171.       Begin VB.Menu CanDrawLinkMenu 
  172.          Caption         =   "Can Draw &Link"
  173.       End
  174.       Begin VB.Menu AutoScrollMenu 
  175.          Caption         =   "&AutoScroll"
  176.       End
  177.    End
  178.    Begin VB.Menu WindowMenu 
  179.       Caption         =   "&Window"
  180.       WindowList      =   -1  'True
  181.       Begin VB.Menu CascadeMenu 
  182.          Caption         =   "&Cascade"
  183.       End
  184.       Begin VB.Menu TileMenu 
  185.          Caption         =   "&Tile"
  186.       End
  187.       Begin VB.Menu ReorganizeMenu 
  188.          Caption         =   "&Reorganize"
  189.       End
  190.    End
  191.    Begin VB.Menu InfoMenu 
  192.       Caption         =   "&Info"
  193.       Begin VB.Menu HelpMenu 
  194.          Caption         =   "EasyNet &Help "
  195.       End
  196.       Begin VB.Menu SEPARATOR2 
  197.          Caption         =   "-"
  198.       End
  199.       Begin VB.Menu AboutMenu 
  200.          Caption         =   "&About..."
  201.       End
  202.    End
  203. End
  204. Attribute VB_Name = "MDI1"
  205. Attribute VB_Creatable = False
  206. Attribute VB_Exposed = False
  207. Option Explicit
  208.  
  209. Private Sub AboutMenu_Click()
  210.   About.Show 1
  211. End Sub
  212.  
  213. Private Sub AutoScrollMenu_Click()
  214.   If ActiveForm Is Nothing Then Exit Sub
  215.  
  216.   ActiveForm.Net1.Item = 0
  217.   ActiveForm.Net1.AutoScroll = Not ActiveForm.Net1.AutoScroll
  218.   AutoScrollMenu.Checked = ActiveForm.Net1.AutoScroll
  219. End Sub
  220.  
  221. Private Sub CanDrawLinkMenu_Click()
  222.   If ActiveForm Is Nothing Then Exit Sub
  223.   ActiveForm.Net1.Item = 0
  224.   ActiveForm.Net1.CanDrawLink = Not ActiveForm.Net1.CanDrawLink
  225.   CanDrawLinkMenu.Checked = ActiveForm.Net1.CanDrawLink
  226. End Sub
  227.  
  228. Private Sub CanDrawNodeMenu_Click()
  229.   If ActiveForm Is Nothing Then Exit Sub
  230.   ActiveForm.Net1.CanDrawNode = Not ActiveForm.Net1.CanDrawNode
  231.   CanDrawNodeMenu.Checked = ActiveForm.Net1.CanDrawNode
  232. End Sub
  233.  
  234. Private Sub CanMoveNodemenu_Click()
  235.   If ActiveForm Is Nothing Then Exit Sub
  236.   ActiveForm.Net1.Item = 0
  237.   ActiveForm.Net1.CanMoveNode = Not ActiveForm.Net1.CanMoveNode
  238.   CanMoveNodemenu.Checked = ActiveForm.Net1.CanMoveNode
  239. End Sub
  240.  
  241. Private Sub CanMultiLinkMenu_Click()
  242.   If ActiveForm Is Nothing Then Exit Sub
  243.   ActiveForm.Net1.CanMultiLink = Not ActiveForm.Net1.CanMultiLink
  244.   CanMultiLinkMenu.Checked = ActiveForm.Net1.CanMultiLink
  245. End Sub
  246.  
  247. Private Sub CanSizeNodeMenu_Click()
  248.   If ActiveForm Is Nothing Then Exit Sub
  249.   ActiveForm.Net1.Item = 0
  250.   ActiveForm.Net1.CanSizeNode = Not ActiveForm.Net1.CanSizeNode
  251.   CanSizeNodeMenu.Checked = ActiveForm.Net1.CanSizeNode
  252. End Sub
  253.  
  254. Private Sub CanStretchLinkMenu_Click()
  255.   If ActiveForm Is Nothing Then Exit Sub
  256.   ActiveForm.Net1.Item = 0
  257.   ActiveForm.Net1.CanStretchLink = Not ActiveForm.Net1.CanStretchLink
  258.   CanStretchLinkMenu.Checked = ActiveForm.Net1.CanStretchLink
  259. End Sub
  260.  
  261. Private Sub CascadeMenu_Click()
  262.   Arrange CASCADE
  263. End Sub
  264.  
  265. Private Sub Command1_Click()
  266.   HelpMenu_Click
  267. End Sub
  268.  
  269. Private Sub Command5_Click()
  270.   If ActiveForm Is Nothing Then Exit Sub
  271.   frmComments.Show 1
  272. End Sub
  273.  
  274. Private Sub CopyMenu_Click()
  275.   If ActiveForm Is Nothing Then Exit Sub
  276.   ActiveForm.Net1.EditAction = 7
  277. End Sub
  278.  
  279. Private Sub DeleteMenu_Click()
  280.   If ActiveForm Is Nothing Then Exit Sub
  281.   ActiveForm.Net1.EditAction = 2
  282. End Sub
  283.  
  284. Private Sub Exitmenu_Click()
  285.   Unload Me
  286. End Sub
  287.  
  288. Private Sub HelpMenu_Click()
  289.   Dim rc As Integer
  290.   rc = WinHelp(hWnd, "easynet.hlp", HELP_INDEX, 0)
  291. End Sub
  292.  
  293. Private Sub MDIForm_Load()
  294.   cr = Chr$(13)
  295.   lf = Chr$(10)
  296.   Me.WindowState = 2
  297.   Form1.Show
  298.   Form2.Show
  299.   Form3.Show
  300.   Form4.Show
  301.   TileMenu_Click
  302. End Sub
  303.  
  304. Private Sub MDIForm_Resize()
  305.   Line1.X1 = 0
  306.   Line1.X2 = ScaleWidth
  307. End Sub
  308.  
  309. Private Sub MultiSelectionMenu_Click()
  310.   If ActiveForm Is Nothing Then Exit Sub
  311.   ActiveForm.Net1.MultiSel = Not ActiveForm.Net1.MultiSel
  312.   MultiSelectionMenu.Checked = ActiveForm.Net1.MultiSel
  313.   ActiveForm.Net1.EditAction = 4
  314. End Sub
  315.  
  316. Private Sub ReadOnlyMenu_Click()
  317.   If ActiveForm Is Nothing Then Exit Sub
  318.   ActiveForm.Net1.ReadOnly = Not ActiveForm.Net1.ReadOnly
  319.   ReadOnlyMenu.Checked = ActiveForm.Net1.ReadOnly
  320.   ActiveForm.Net1.EditAction = 4
  321. End Sub
  322.  
  323. Private Sub ReorganizeMenu_Click()
  324.   Arrange REORGANISER_ICONES
  325. End Sub
  326.  
  327. Private Sub SelectAllMenu_Click()
  328.   If ActiveForm Is Nothing Then Exit Sub
  329.   ActiveForm.Net1.EditAction = 3
  330. End Sub
  331.  
  332. Private Sub SelectModeMenu_Click()
  333.   If ActiveForm Is Nothing Then Exit Sub
  334.   ActiveForm.Net1.SelectMode = Not ActiveForm.Net1.SelectMode
  335.   If ActiveForm.Net1.SelectMode = True Then
  336.     SelectModeMenu.Checked = True
  337.     ActiveForm.Net1.MousePointer = 2
  338.   Else
  339.     SelectModeMenu.Checked = False
  340.     ActiveForm.Net1.MousePointer = 0
  341.   End If
  342. End Sub
  343.  
  344. Private Sub ShowExample_Click(Index As Integer)
  345.   Select Case Index
  346.   Case 0
  347.     Form1.Show
  348.   Case 1
  349.     Form2.Show
  350.   Case 2
  351.     Form3.Show
  352.   Case 3
  353.     Form4.Show
  354.   End Select
  355. End Sub
  356.  
  357. Private Sub TileMenu_Click()
  358.   Arrange MOZAIQUE_HORIZONTALE
  359. End Sub
  360.  
  361. Private Sub ZoomValueMenu_Click(Index As Integer)
  362.   Dim Zoom%, i%
  363.  
  364.   If ActiveForm Is Nothing Then Exit Sub
  365.  
  366.   For i = 0 To 3
  367.     ZoomValueMenu(i).Checked = False
  368.   Next
  369.  
  370.   Select Case Index
  371.   Case 0
  372.     Zoom = 100
  373.   Case 1
  374.     Zoom = 200
  375.   Case 2
  376.     Zoom = 50
  377.   Case 3
  378.     Zoom = 0
  379.   End Select
  380.  
  381.   ZoomValueMenu(Index).Checked = True
  382.   ActiveForm.Net1.Zoom = Zoom
  383. End Sub
  384.  
  385.